package Factory;

public class ConditionerStore {
        private ConditionerFactory factory;

        public Conditioner orderConditioner(String country) {
            Conditioner conditioner = null;
            if (country.equals("CH")){
            conditioner = new ConditionerFactory(new ChinaConditionerFactory());
            conditioner.setName("Conditioner MADE IN CHINA");
            }
            if (country.equals("KR")){
                conditioner = new ConditionerFactory(new KoreaConditionerFactory());
                conditioner.setName("Conditioner MADE IN KOREA");    
            }
            
            return conditioner;
        }
   
}
